package cn.com.blueInfo.HaiYuan.business.purchase.mapper;

import cn.com.blueInfo.HaiYuan.business.purchase.entity.PurchasePrice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 采购价格表
 * @ClassName: PurchasePriceMapper
 * @tableName: tj_hai_purchase_price
 * @author suxch
 * @date 2019年7月25日  上午11:43:33
 */
@Mapper
public interface PurchasePriceMapper extends BaseMapper<PurchasePrice> {

    /**
     * 批量新增采购价格信息
     * @Title: batchAddPurchasePriceInfo
     * @param purchasePriceList
     * @return int
     * @throws
     */
    int batchAddPurchasePriceInfo(List<PurchasePrice> purchasePriceList);

    /**
     * 新增采购价格信息
     * @Title: addPurchasePriceInfo
     * @param purchasePrice
     * @return int
     * @throws
     */
    int addPurchasePriceInfo(PurchasePrice purchasePrice);

    /**
     * 批量删除采购价格信息
     * @Title: batchDelPurchasePriceInfoByUnids
     * @param purchasePriceUnids
     * @return int
     * @throws
     */
    int batchDelPurchasePriceInfoByUnids(ArrayList<String> purchasePriceUnids);

    /**
     * 删除采购价格信息
     * @Title: delPurchasePriceInfoByUnid
     * @param unid
     * @return int
     * @throws
     */
    int delPurchasePriceInfoByUnid(String unid);

    /**
     * 批量更新采购价格信息
     * @Title: batchUpdatePurchasePriceInfoByUnid
     * @param purchasePriceList
     * @return int
     * @throws
     */
    int batchUpdatePurchasePriceInfoByUnid(List<PurchasePrice> purchasePriceList);

    /**
     * 更新采购价格信息
     * @Title: updatePurchasePriceInfoByUnid
     * @param purchasePrice
     * @return int
     * @throws
     */
    int updatePurchasePriceInfoByUnid(PurchasePrice purchasePrice);

    /**
     * 分页查询采购价格信息
     * @Title: queryPurchasePriceInfo
     * @param paramMap
     * @return List<PurchasePrice>
     * @throws
     */
    List<PurchasePrice> queryPurchasePriceInfo(Map<String, Object> paramMap);

    /**
     * 查询采购价格信息
     * @Title: queryPurchasePriceInfo
     * @return List<PurchasePrice>
     * @throws
     */
    List<PurchasePrice> queryPurchasePriceInfo();

    /**
     * 条件查询采购价格数量
     * @Title: queryPurchasePriceInfoCount
     * @param paramMap
     * @return Integer
     * @throws
     */
    Integer queryPurchasePriceInfoCount(Map<String, Object> paramMap);

    /**
     * 查询采购价格数量
     * @Title: queryPurchasePriceInfoCount
     * @return Integer
     * @throws
     */
    Integer queryPurchasePriceInfoCount();
}
